Skip to main content

Tier0 uses UNS (Unified Namespace) to organize data into a clear tree structure. Each path and topic in the model automatically generates an MQTT topic, making it easy to get real-time data.

Things to Notice before Start

Page Overview

Select Unified Namespace > UNS after logging in to Tier0, you will see the main page of this module.

No.ItemDescription
1NamespaceDisplays data models in different ways, including directly by namespace structure, by template and by label.
2Use a draft to test and change the namespace models before building on the platform.
Import/export namespace models in JSON text or file.
Add path/topic.
3SearchEnter keywords to search for paths and topics.
Model ListDisplays data models by the selected category.
4Recycle BinLists the deleted data models.
5CanvasDisplays selected UNS information or cards generated through chats on the right.
6ChatUse natural language to interact with UNS topics, and cards generated from the chat can be dragged to and displayed on the canvas.

Additional Parameter Definition

  • Topic-Topic Type
TypeDescription
StateWorks as an API to receive system state data.
ActionWorks as an API to execute CRUD commands.
MetricReal-time data. For example, equipment temperature.
  • Topic-Attribute Generation Method
Attribute Generation MethodDescription
Pre-DefinedCustomize attributes.
TemplateInherit attributes from the selected template.
Auto ParsingUse JSON text to generate attributes with the same structure.
  • Topic-Linked Operation
ItemDescription
Mock DataGenerates a data flow with mock data in Unified Namespace > Flows > Source Flow.
Enable HistoryEnable historical data storage for the topic.

How to Build a Data Model

Based on simple folder-file structure, you can define the data hierarchy to a tree map.

Building Models Manually

note

factory/equipment/CNC will be used as an example, in which factory and equipment are paths and CNC is a topic.

  1. Log in to Tier0, and then select UNS.
  2. Select > New Path to add a path (e.g. factory).
note

Add Custom Attributes as needed, e.g. Unit.

  1. Select equipment, and then click > New Topic to add a topic (e.g.CNC) under it.
  1. Enter the information of the topic:
    1. Select Type among State, Action, or Metric.
    2. Select whether to enable Mock Data and Enable History.
    3. Click and then add attributes to the topic.
  1. Click Create.

Importing Models

  1. Log in to Tier0, and then select UNS.
  2. Click at the upper-left corner.
  3. Import JSON to create models.
  • Directly enter JSON.
  • Upload a JSON file that contains model information.

    1. Click Download Template and enter the model content according to template rules.
    tip

    You can manually add a path and topic, click to export it and use it as an example for import.

    1. Save the template file, switch to File tab on the import window, and upload the file.
  1. Click Submit.

Optional Features

Building Template

  1. On the UNS page, switch Namespace to Template tab.
  2. Click , and then enter the information of the template.
  3. Click , select a topic under Source.
  4. Click Generate, edit the attributes generated from the selected topic.
  1. Click Create.

Creating Label

Labels are used for categorizing data models.

  1. On the UNS page, switch Namespace to Label tab.
  2. Click , and then enter the label name.
  3. Click Create, and then click to add topics under the label.
  1. Click Create.